package com.hgd.security.evp.biz.biz;

import com.hgd.security.evp.biz.entity.EvpElement;
import com.hgd.security.evp.biz.mapper.EvpElementMapper;
import com.hgd.security.evp.common.biz.BusinessBiz;
import com.hgd.security.evp.common.util.ObjectResultResponse;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
 *
 * @author By Shang
 * @version 2019-01-27 22:29:21
 */
@Service
public class EvpElementBiz extends BusinessBiz<EvpElementMapper, EvpElement> {
    public ObjectResultResponse<Void> addEElement(EvpElement eElement) {
        ObjectResultResponse<Void> resultResponse=new ObjectResultResponse<>();

        this.insertSelectiveBindCrt(eElement);

        resultResponse.setStatus(400);
        resultResponse.setMessage("添加元素成功");
        return resultResponse;
    }

    public ObjectResultResponse<Void> updateEElement(EvpElement eElement) {
        return null;
    }

    public ObjectResultResponse<Void> delElement(Integer id) {
        return null;
    }

	public List<EvpElement> getAuthorityButton(String userId) {
		return this.mapper.getAuthorityButton(Integer.valueOf(userId));
	}
}